Always ungrab the mouse when a window unmaps.