ensuring that shutdown and other unrelated exceptions don't cause a
problem