client: implemented serial port reconnection for Linux