Made trace useful for errors caught during shutdown.