fix: also remove top-level job when there are no more job instances