Destroy machines before destroying the model