Close poll loop pipes on cleanup

Leaving these open causes file descriptors to leak, this causes
problems on long running processes that use multiple clients to submit
jobs.

Change-Id: Iec51ff6ebc127257acf07bd59920e995358a572d