Fix memory leak when pipes were closed externally.
Allow multiple client opening same serial port.