(db_create_views) fix error at close.