Exit program when unable to open log file.