Cleans up AppDelegate