Added exception handling in threaded version of spire.
Merge branch 'master' of https://github.com/SCIInstitute/spire