handle unhandled exception

from:http://stackoverflow.com/questions/1472498/wpf-global-exception-handler