I can not find the point where the mesh is deleted (if it was successful generated).