added MouseCaptureLost event handler