Added error handling for amqp lib.
Merge pull request #47 from unlucio/master

Added error handling for the amqp lib