Defer func instead of close to check for nil pointer.
Merge branch 'master' of github.com:leonardaustin/cruft