lordmulder/stdutils — pull request #4 by justanotheranonymoususer (2014-10-08 10:18:33+00:00)
Title:  DispatchPendingMessages: instead of using a timeout value, use PostQuitMessage

Seems to work fine. Please test it with the cases it crashed for you without a timeout.