Fix closing database before deleting the database directory.
Fix closing database before deleting the database directory.

NeblioTeam/neblio,NeblioTeam/neblio,NeblioTeam/neblio,NeblioTeam/neblio,NeblioTeam/neblio