die with error msg if opening log file fails