Fix validation: 0 is legal argument too
Added a bit logging to notice if a task errors