tools:iio:iio_event_monitor: add error handling