fix the thread leak in timeout class (https://github.com/cucumber/cucumber-jvm/issues/639)