global shutdown patch -- needs to be documented in integrator guide.