trying to assure everything gets done before the shutdown