Restore closeReadingPipe

Restore closeReadingPipe to be compatible with mysensors
Merge pull request #4 from a-lurker/master

Restore closeReadingPipe merge for mysensors