Fixed ConcurrentModification at stop time

introduced in 1b9895 - removed synchronized (threads) blocks