Fixup process exit problems.

There were isuses with the process exiting cleanly on a INT.
This is part of the restructured manager and server processes
(RR-112) and should address the issues. It also cleans up some
of the common CLI code and reintroduces the fix for annoying
thread spam in the logs.

Change-Id: I8b6eabe69c77eff4625db26487512fd4a7fbe938