clean up logging, cleartimout before starting another