The solution here was to remove export LSTC_INTERNAL_CLIENT="off" from the script. This apparently allows LS-Dyna to use the lstc_client which is built into the executable, rather than running it as a standalone process. Just be aware that this may cause version compatibility issues, so it may be better to use export LSTC_INTERNAL_CLIENT="off" with the standalone lstc_client in some cases.