Ensured that Applicationperspective is closed on startup