Add ConnectionError compat

Signed-off-by: Michael Buesch <m@bues.ch>
coreserver: Rewrite exception handling

Signed-off-by: Michael Buesch <m@bues.ch>
gui: Avoid run-recursions

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