This method hides an application before closing the open documents.
void HideApplication( );
CWinApp::CloseAllDocuments