Catch syntax errors when loading