Fixes #123

Corrected premature thread abort.  

Most likely fixes #63 as well.