fn abort_background_job<T>(
    join_handle: ScopedJoinHandle<'_, Result<T>>,
    bg_job_control: &BackgroundJobControl
) -> Result<T>