Set close-on-exec in attempt to head off GitHub issue #61