Use std::atomic<bool>.
Remove debug message.
removed hostname check
removed log warning