properly retain and release the window and menu delegates in ClientAppDelegate