clear parameters upon close.