From time to time an error occurs "LibreOffice has stopped working"

Hi!

I have java-application running on machine with Windows which use LibreOffice (starts as local instance LibreOffice with options “-accept=socket,host=localhost,port=8100;urp;”) for printing DOCX/PDF-files.
From time to time an error occurs “LibreOffice has stopped working”. Details:

Faulting application name: soffice.bin, version: 5.3.2.2, time stamp: 0x58ddff87
Faulting module name: KERNELBASE.dll, version: 6.3.9600.18666, time stamp: 0x58f33794
Exception code: 0x00000000
Fault offset: 0x00000000000095fc
Faulting process id: 0xd8
Faulting application start time: 0x01d336bdd1a38fdf
Faulting application path: C:\Program Files\LibreOffice 5\program\soffice.bin
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: ae6f9864-a2b1-11e7-80f5-d89d67272943
Faulting package full name:
Faulting package-relative application ID:

Is there any solution to this problem?