Fixed Excepton handling

Updated as in https://github.com/mozilla/sumo-tests/pull/174