Fix for handling Uno reboot when serial port opened.