cleanup after done is called