Working on serialport close patch.