Remove the last setjmp
Finally switch error to using exceptions