Catch parse errors in imported files as exceptions