Add sleep to connection test
Fix #12. Add SSLError handling