Close Events
- added Event-Handling when closing the application