I am using LibreOffice on Windows Server 2016 with a windows service. I am using the command
"C:\Program Files\LibreOffice\program\soffice" -norestore -nofirststartwizard -headless -convert-to pdf %1 -outdir %var1%
It is hagning for a specific file and leaving a zombie process behind. After that office fails to convert any file.