Fixed issue where the "connection failed" or "connection timed out" was
not displayed correctly