behaviour for easier rabbitmq connection handling