Kernel: Implement the Close command for Archive, File and Directory.