DispatchPendingMessages: instead of using a timeout value, use PostQuitMessage