* Add debug logging
* Remove RELEASE on shutdown.
* Fix handling of client-id on command line.