Add abort hooks for sync_job/sync_build