allow for GraphSON format and added close()