Set shuttingdown on exceptions