Restoring the previous behaviour of exiting the application if an unhandled exception occurrs.

This change was made to match the behaviour of a console application; however it appears that WPF applications follow what the documentation states: "It allows the application to log information about the exception before the system default handler reports the exception to the user and terminates the application."