handle errors in openssl #10