Fixed some error handling for the riskGUI.