Strange behavior when using LibreOffice quick start

There are two ways to start LibreOffice:

  1. Start LibreOffice when an application is launched

  2. Start LibreOffice when Windows starts (quick start)

I have a spreadsheet application with several Python scripts that runs fine with method 1. I can open, close, and reopen the application without any problems. However, when I use method 2, it works fine the first time, but error messages appear when I start the application again. According to the first message, I inadvertently closed the application, and then I get an error message about activating a sheet. Is this a bug, or does method 2 require clearing data (garbage collect) to enable a fresh start?