Removed AppDomain.CurrentDomain.UnhandledException to work in Windows Phone.