utils: catch SyntaxError during import