Closing files and folders.