Work on exception handling

* Allow make functions to throw runtime errors
* Add simple SWIG error handling to prevent crashes