bugfix in shutdown logic, changed toString method for messages for
better logs, toned down logging
as per client gateway
cleanup