Db::closeAll fix