added abandon logic to JITFunction