AMQP-422: Rework `stop` logic to the scheduling