Sort out the callback thread creation and handling.