Implementation of MFC shutdown program