SerialPort: Fix crash on terminate/close application.
SerialPort: Fix crash on terminate/close application.

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