let close env goals = let f p () = W.close env p in List.map (fun g -> make_goal g.g_id (f g.g_prop) [g.g_descr]) goals