cleanup log on successful command run