Problem with exiting a daemonized process,time.sleep(1)