Fixed how the choose neighbors threads are interrupted and stopped.