Potential fix for threading bug with thread class that has a stop method...

I used this fix http://stackoverflow.com/a/25670684 to add an ability to stop a thread. 

I can now unlock and run tests on a Windows machine. This should solve #145 

I'm not sure how this affects OK otherwise - but it seems to work on OSX and Windows.