Fixes error logging as part of #57, new bug mentioned in #61.
Open at login as part of sample config; closes #61.