copy change from rabbit_amqqueue_process to slave
for consistency
merge bug25353 into stable
tidy up
merge bug25353 into stable