Bugfix: NoSuchElementException or NullPointerException during shutdown of DiscreteEventSimulator

Problem was due to possible concurrent modification of events list.
Fixed.