added option "--exit-on-no-events"