@Override
    public String toString() {
        return StringFactory.traversalSourceString(this);
    }
If there is an underlying {@link RemoteConnection} it will be closed by this method.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversalSource.java