There are occasions in which the communications between the master and the servant can get out of sync, in particular if the user generates an interrupt and then aborts a process in the middle of a remote goal service. In this case, the goal reset_servant attempts to return the servant to the top level and to flush the socket.