How to break the task execution after a task failure in parallel mode

when build projects in parallel, task execution continues after a task failure, is this default behavior? how to override it?