We use the TerminationVetoException to stop File->Exit from terminating the soffice process as we still need the process for remote uno connections.
However, this has the side effect that you can no longer close the windows when selecting File->Exit.
The user should still be able to close all visible frames using File->Exit; the TerminationVetoException only should prevent terminating the process.
Samuel Mehrbrodt committed a patch related to this issue.
It has been pushed to "master":
tdf#102288 TerminationVetoException should only prevent termination
It will be available in 5.3.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.