YARN-2988. Graph#save() may leak file descriptors. (Ted Yu via ozawa)