Event handling fixed. Menu -> Exit Program is now working.

Signed-off-by: Luaidh <Marin.Althuis@t-online.de>