use just thread barriers to destroy the model