fix for #813
prevent logging class from choking on corrupt log
prevent login from failing if logging class fatally fails.