in AlgorithmManager. Prevents segfaults if running MANY algorithms while one very slow one is still running.