Check errors

errcheck is pretty sweet: https://github.com/kisielk/errcheck

Please review the error handling, I don't quite understand spill details.