Possible fix for threads.txt becoming empty (#19)