connection.__del__()
socket.close() if socket.error occured