def disconnect
      if @connection.respond_to?(:actors)
        @connection.actors.each do |connection|
          connection.async.disconnect if connection.alive?
        end
      else
        @connection.async.disconnect if @connection.alive?
      end
    end
def disconnect
      if @connection.respond_to?(:actors)
        @connection.actors.each do |connection|
          connection.async.disconnect if connection.alive?
        end
      else
        @connection.async.disconnect if @connection.alive?
      end
    end
Closes the connection to the service.

 @see    Connection#disconnect

 @return [void]