Fixing exception handling function so you may see origional.