fixed various issues
socket.error, socket.herror, socket.gaierror now only appies to socket-creation