Merge pull request #31 from orbitcowboy/master

Fixed file descriptor leak on LoadSettings() failure