Added close function to ramfs