Issues with serial port - dedicated write thread should work