Fixes 113: Will only ask to cancel once when closing window