} catch (RuntimeException ex) {
ex.printStackTrace();
try {
State st = State.DONE_ERR;
ta.log(id_processor, id_task, ex.toString());
ta.log(id_processor, id_task,
"The task was completed with " + st.name() + " status");
ta.setTaskError(id_task, ex);
saveParams(Saved.TIME.after);
ta.setDoneErr(id_processor, id_task);
} catch (SysException ex1) {