gui: Exclude user events in shutdown

Signed-off-by: Michael Buesch <m@bues.ch>