add cleanup after finished