CPP-140 - Catch SIGPIPE in IOWorker threads

This caught a mutex leak too.