If the datasource can't be looked up it can be due to As shutting down, but either way don't retry the delete in the loop as the while guard can never be true