Added exception handling to writing the STL file when there is no name
available.