I swear I've seen this cleanup code in `_insert_cleanup_task` before.