Improve shutdown behavior when interrupting background updates.