Prevent the new thread from exiting itself.