fix crash related to mouse being dragging whilst Display is destroyed.