Added error message to GUI if exception occurs. GUI cleanup