Ensure timer tasks are cancelled during state transitions.
Use CopyOnWriteArrayList for leader response callbacks in order to prevent ConcurrentModificationException.