Added error handler for graph promise.