title: Why is sqflite retaining open database reference on hot reload
body: <p>I have an app that checks for an sqflite db file in the app storage directory and if it is present, blows away the file and creates a new one and then opens it for the remainder of the app life.  What I have noticed is that hot restart fails with sql exceptions because it still sees the database as open somewhere in memory even though all my references are blown away due to the restart. This seems like a bug because I have no way to control the closing of that database unless I try to make sure it is closed if the application is killed.  Is this by design?  Is there a standard way to approach it?</p>
  <p>I noticed this related <a href="https://stackoverflow.com/questions/61599995/flutter-sqflite-database-unstable-after-hot-reload/61611548#61611548">post</a></p>