Ensure all access to Debugger.Session is serialized.
Make Debugger.Session private.

Less room for threading errors.
Simplify some code in CustomLogger.
Use libc printf for printing.

Because apparently Console.WriteLine messes up the history
of libreadline. Bloody hell.
Make Ctrl-C cancel `listen` and `connect` correctly.