Also, am I supposed to socket.end() after socket.write()'ing?