Add set window title
Add event queue with window close event handler instead of waiting 2 seconds