Fixed race condition in BlockingCallback. Improved logging of shutdown process.