Disconnect captain correctly, handle mouse events