Fixed #1404, using WaitForMultipleObjects now.
Merge pull request #1405 from akallabeth/printer_stop_fix

Fix hang on shutdown with printer redirection