Fix a bug of evaluation

When stopping an evaluation, the thread is now properly ended.