Allow res.on('end', ...) in server.rpc()

This allows server.rpc() handlers to determine if the other end has disconnected.