Add tests for RemoteViaSocket shut-downs, restarts, etc.

fixes #75