improved recover handling of serial communication