Fix receive messages loop to allow a mix of Acknowledge and Async messages.