cleanup run method