adding do_try function

* catches exceptions using a similar method to the one used on
  case expressions for matching variables and guards.
* still not working.