Serial port status and automatic connection retry