This must be called when you don't need the service anymore. It ensures the underlying database get closed.