Proper handling of ERROR_PIPE_CONNECTED (Windows only).