more changes to prevent resource leaks.
Merge branch '1.0-snapshot' of https://github.com/cytoscape/ndex-rest.git into 1.0-snapshot