Added better exception string handling.