fix: destroy calculator window before deleting it on exit
CWindowImpl asserts (m_hWnd must be NULL) if the C++ object is deleted while
its HWND is still alive. On Exit the window was only ever hidden (WM_CLOSE),
never destroyed, so 'delete g_calc' tripped the ATL debug assertion. Destroy
the window first.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>