Prevent tasks to exit.