catch function now also catches stack overflows.
Added arg to tailcall so any other closure can be called.