rescue close db.