Added quit on last window close to app delegate