Properly close() graph instances on Gremlin Server shutdown. #308