This fixes bug #2
Not sure this is the best way to do this, but at least I'm not just ignoring errors now.