closeAllFiles API added.