add assert into sqlite::close