Added exception and event handling: gui & plugin