If you closed a module with unsaved changes and chose 'Cancel', the module would still close

If you change data in a module and want to close it without saving, you will get a pop-up asking "Do you want to save the changed data?". When you clicked Cancel, the module was closed anyway and the changes were not saved. The same happened when changing the fiscal year and administration.