Treat failing to connect using ssl module as a "connection step failure"

This change was needed to capture this failure in the tests. So far
such a failure wasn't propagated outside the process handling
the connection.