Remove erroneous division by numSamples in AudioTool::sin()
Actually clean up threads properly