fixes to new pauses to get tests to pass for nested tasks, and call the "X" button clean shutdown