Put message in logs on script exit