- ta_dense now catches exceptions in the entire main function.
- ta_dense now handles all types of exceptions.
- ta_dense will now return an error if an exception is thrown instead of exiting with an unhanded exception.