Add exception handling for AMQP