Do you mean WM_CLOSE, instead of WM_DESTROY?