Make sure the DB is closed at exit, so we retain all updates