Fixed problems with raising exceptions in parsing processes