public void Return(ReturnMode mode) { CommandResult result; lock (this) { check_alive(); result = servant.Return(mode); if (result == null) { return; } } result.Wait(); }