Shutdown callback support.