Logging fixes.
Shutdown ZMQ first, then Raft server, otherwise it may lead to deadlock.