Sometimes the output mesh is invalid. Now output is verified before writing to disk, however the problem need to be resolved.