Prevent closing of tasks