FindWindow, WaitforSingleObject and Deadlock