Db:closeAll fix