Add exit to the top of log files