Text this: Closures of permutation groups with restricted nonabelian composition factors