Close the standard input right after reading to avoid duplicate calls
Close the standard input right after reading to avoid duplicate calls

Change-Id: Idd4b5bf996d57f0cd22a30496af3841f7d5a806a
Reviewed-by: Sergey Belyashov <8871b4c2d635fca691211507eadbac3d0bc2695a@gmail.com>
Reviewed-by: Denis Shienkov <6a9c747bd2ba446682324cf340d3b86f30cf4d55@gmail.com>

RoadWorksSoftware/QtSerialPort-OS2,kobolabs/qtserialport,RoadWorksSoftware/QtSerialPort-OS2,kobolabs/qtserialport