Avoid exceptions on shutdown.
Improve client exception class.
Remove default logging to stdout.