view3d: convertVTPtoOBJ: Close output file to ensure it gets flushed immediately.