Avoid using thread interruption

Thread interruption turned out to be problematic because of other
libraries receiving and interpreting the interruption.