import threading
import time
def target():
try:
time.sleep(3)
finally:
print('Doing important cleanup')
t = threading.Thread(target=target)
t.daemon=True
t.start()
print('Oops, no cleanup.')
aW1wb3J0IHRocmVhZGluZwppbXBvcnQgdGltZQoKZGVmIHRhcmdldCgpOgoJdHJ5OgoJCXRpbWUuc2xlZXAoMykKCWZpbmFsbHk6CgkJcHJpbnQoJ0RvaW5nIGltcG9ydGFudCBjbGVhbnVwJykKCnQgPSB0aHJlYWRpbmcuVGhyZWFkKHRhcmdldD10YXJnZXQpCnQuZGFlbW9uPVRydWUKdC5zdGFydCgpCgpwcmludCgnT29wcywgbm8gY2xlYW51cC4nKQ==