No. There is no bug but the starter service is just to start some things. I prefer not to use it. Use another service than the starter service. E.g. I have several services for db handling, encryption, communication, etc.
So start and stop the - let's call it "db service" by your own code. Then you have no side effects and all under control.
Closing the db intentionally is a good practice. Check if it's initialized and if not reopen it.