don't shutdown gdi plus until after main window is destroyed