Fix error
Force amqp_client shutdown only after rmql
Unregister return handler on terminate