added error handling to graphstreams