better error message for "unknown host"

When the lasercutter host cannot be found, visicut gives the meaningless error message "Exception: lasercutter.lab"
(when lasercutter.lab is the lasercutter hostname). I wrote an ugly workaround to fix this, but is there a prettier way?