feature: Some little improvements
bugfix: A crash when the window is closed before re-entering event loop in an event,