Error handling more objecty.  With tests!

This handles NetLogo/Tortoise#25