Properly handle runtime errors in node.js and give nicer error messages for importing things that cannot be imported.