- logging cleanup in states