Doesn't crash but still not correct. Works on Cilk-like programs. Object dependent programs are calling task end function twice.