Allow shutdown and allow descoping of callbacks and data.