This happens before starting the broker. Also don't quit with an error if opening the log file isn't possible. Closes #821.