Added a warning (always to stderr) when opening the log file fails