AppDelegate cleanup.