Remembered to use KillTimer() after my message loop and the FlushMsg() that was being used started giving an undefined error - presumably because the queue is now empty.
No, it won't throw an error in that situation. But if your message loop has exited and the dialog no longer exists, it might. No reason to call it if the dialog is gone.