Cleaning up app delegate