reconnect serial on error