step logging of close