network interface error check (Fixes #4)