Added try/catch support.
Merge branch 'master' of https://github.com/MichaelRawson/thrust