Rhino crashes upon creating file