update logs on exit.