Clear rotation path on undo
Fixed race condition where “Connection lost” notification appears even when user is reconnected
Clean up code