refactor: improve error reporting at task functions handling