admin: Improve handling of background jobs.