Removed sending another error code after failed connection is detected.
Also fixes test case tls-bug58-1.0.