do not blow up on error and close
Merge pull request #5 from mafintosh/patch-1

do not blow up on error and close