Catch EPIPE exception and return

Otherwise you get a traceback if you pipe `jenkins-jobs` to the UNIX
`head` command.

Change-Id: If83fd5b9f4aacd031e9ab0c35d61cc6d57542be9
Merge "Catch EPIPE exception and return"