Handle the environment variable being changed out from under the reading thread.
Merge pull request #383 from rjemanuele/fix-env

Handle the environment variable being changed out from under the reading...