cancel option on saving operation before close does not close the application