When processing events, AttachCurrentThread is called, but matching DetachCurrentThread was not being called This prevented main thread from exiting
When processing events, AttachCurrentThread is called, but matching DetachCurrentThread was not being called This prevented main thread from exiting