Flush serial buffer in case of parsing error