tool_operate: Moved easy handle cleanup into tool_main