mouse state cleanup