Verify writer exists before attempting to close
Merge pull request #1 from kongregate/bubble-errors

Verify writer exists before attempting to close