macOS: When the user closes the window (which quits the application), and a task is currently running, a confirmation prompt appears: "A task is currently running. Exiting will terminate it. Are you ...