Catch listener errors.