Restore closeReadingPipe

Restore closeReadingPipe to be compatible with mysensors