Fixed glitchy mouse movement on close