Fixed a Windows-specific problem where failures from accept() are incorrectly treated as successes. Refs #4859.