gui: Catch exceptions on memory write requests

Signed-off-by: Michael Buesch <m@bues.ch>
gui: Handle maintenance requests properly

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