Handle exception in parser.
Fix implementing exceptions.