Convert the message handler to async/await.