Properly handling parser exception