Fix exit in app