cleanup AppDelegate