Remove an obsolete workaround.

The problem it was trying to overcome has been fixed for a long while.
Reformatting with astyle.
Set util::log::Error() to immediately flush.

This is to avoid interleaving between error messages.
Add rudimentary logging to ServerCatchError.
Fix usage of std::memset().