[MINOR] Fix reading dml scripts from dist fs / object store
diff --git a/src/main/java/org/apache/sysds/api/DMLScript.java b/src/main/java/org/apache/sysds/api/DMLScript.java
index a069182..6854ebb 100644
--- a/src/main/java/org/apache/sysds/api/DMLScript.java
+++ b/src/main/java/org/apache/sysds/api/DMLScript.java
@@ -112,8 +112,6 @@
 	public static String _uuid = IDHandler.createDistributedUniqueID();
 	private static final Log LOG = LogFactory.getLog(DMLScript.class.getName());
 
-	private static FileSystem fs = null;
-
 	///////////////////////////////
 	// public external interface
 	////////
@@ -283,7 +281,7 @@
 					|| IOUtilFunctions.isObjectStoreFileScheme(new Path(fileName)) )
 				{ 
 					Path scriptPath = new Path(fileName);
-					fs = IOUtilFunctions.getFileSystem(scriptPath);
+					FileSystem fs = IOUtilFunctions.getFileSystem(scriptPath);
 					in = new BufferedReader(new InputStreamReader(fs.open(scriptPath)));
 				}
 				// from local file system
@@ -303,8 +301,6 @@
 				throw ex;
 			}
 			finally {
-				if(fs != null)
-					fs.close();
 				IOUtilFunctions.closeSilently(in);
 			}