close api log