Close log file on SD error.
Rename private variables.