Er...Megatron, shouldn't that second WM_CLOSE be WM_DESTROY?