Bugfix: In case of severe errors, the program hang due to running threads. Indexing threads are now changed to daemons