fix shutdown order on close - broker may be gone before client
https://issues.apache.org/jira/browse/AMQ-5171

Make the type suffix configurable.  Clean up logging calls.