Fix error handling in ssltest