Stop deleteThreads() from trying if there are no threads.
Merge pull request #39 from roydude/v1-train

Stop deleteThreads() from trying if there are no threads.