something was wrong with socket.end