Fix issue in case that listeners are throwing exception