Small PEP8 fix
Catch pipe errors
Merge pull request #4312 from basepi/pipe4296

Fix #4296 Catch errors from broken pipes