Flush pipe after receiving a message.