Fix hang terminating PGM ZMQ_SUB (#822).
Merge pull request #1185 from banburybill/master

Fix hang terminating PGM ZMQ_SUB (#822).