Adding helper method to close a folder.