I tried WM_CLOSE. But it still crashes.