cleanup in cli app