receive messages from rabbitmq
fixed shutdown workflow