small tweak in debug out
lock our node while using it to prevent crash on domain shutdown
Merge pull request #1203 from ZappoMan/bugfixes

Potential fix to VS crash on domain server shutdown