String msg = e.getMessage();
SimSystem.report(Level.WARNING, "Exception on server:" + e.getMessage(),
e);
taskRunner.onErrorHook(msg);
if (taskRunner.isCancelOnError()) {
throw new ExperimentException(
"An error occured. The experiment is cancelled! " + msg, e);
}
// cancel this particular run
return new InitializedComputationTask(null, new RunInformation(runConfig));
}