Fixed threading bug, unsure if concurrency is working completely.
Shutdown may make some threads cut out early. Will need to test this.

Change-Id: I019cc1ecd2901e9186106e77357af1f8aa5b00b9
added a reminder to reference the environment variables surrounding threading