private void checkExecutionErrors(ProcessReports[] processReports) {
		if (samplingCount == 0 && ArrayUtils.isNotEmpty(this.processReports) && ArrayUtils.isEmpty(processReports)) {
			getListeners().apply(listener -> {
				listener.readyToStop(StopReason.SCRIPT_ERROR);
			});
		}
	}
Add the given {@link SamplingLifeCycleListener} to get notified when
sampling is started and ended.

@param listener listener to be registered.
ngrinder-core/src/main/java/net/grinder/SingleConsole.java