BUGFIX: users wasn't asked if he really wanted to close when unsaved project is opened causing the main loop not to finish.