release model's resources on completition