`socket.end` should be bound to the `socket` object

`replify` should no longer crash the target process when a client disconnects.