Add graceful shutdown in RabbitMQ processor