clean up logging and progress output