Fix for https://issues.apache.org/activemq/browse/AMQ-1720 added the ability to get a callback when the broker is shutdown. Also added an option to System.exit when the broker is shutdown.