Bugfix

Save all data before the app is closing