Added error feedback and flush method to message receiver