Reset rabbitmq channel on errors.

In order to prevent the message count being out of sync between the
server and client, which in turn causes wait_for_confirms to
continuously time out.