Session hangs with improper batch command

OrientDB: 3.0.22 on Windows

When I execute a sqlBatch(false) command (due to a failed sprintf), the php session hangs and on the server’s console (and on logs) I keep receiving:

$ANSI{green {db=mydb}} Error on unmarshalling content. Class: com.orientechnologies.orient.core.command.script.OCommandScript
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.checkBounds(Unknown Source)
at java.lang.String.(Unknown Source)
at com.orientechnologies.orient.core.serialization.OMemoryStream.getAsString(OMemoryStream.java:409)
at com.orientechnologies.orient.core.command.script.OCommandScript.fromStream(OCommandScript.java:83)
at com.orientechnologies.orient.core.serialization.serializer.stream.OStreamSerializerAnyStreamable.fromStream(OStreamSerializerAnyStreamable.java:86)
at com.orientechnologies.orient.client.remote.message.OCommandRequest.read(OCommandRequest.java:71)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.sessionRequest(ONetworkProtocolBinary.java:281)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:211)
at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:69)