Called at the end of execution. This procedure will announce if there are uncaught exceptions raised and print them.