Moved handlers to being defined inside each function.
Started using an AST like structure to parse exception
handlers inside of functions.