Description
As reported by user "pdsway" on gremlin-users.
In remote console mode the 3.7.0 Gremlin Console will send incomplete queries to the server causing a parsing error.
This is caused by the upgrade to Groovy 4. That version of Groovy uses the newer antlr4 parser which throws errors later in execution. So even if the parser says the the line is COMPLETE, it could still be incomplete. We need to add the same try catch to the remote console's execution to make the handling the same as groovysh.