Allow tasks to define exit values via function return values