Added a devMode flag to pass/ignore the stacktrace to the task