Missed a filesystem.close.   Updated depricated methods.