Add fail-fast functionality to any code execution.