[robustness] able to handle tasks that throws exceptions
[chore] refactored core.clj a bit