Add WM_DELETE_WINDOW atom for graceful closing