Added function to "close" light_file