Fixed mouse lock-in and physics hang on exit