Added support for stationary mouse grabbing
Improved cleanup