Cleanup AppMain.cs.