Added prefect abort handling code, building OK.