Handle out-of-order messages by ignoring all but the final states COMPLETED and ERROR.