merge socket.error/ssl.SSLError to OSError