Call CHM_CloseCHM to avoid a memory leak.