disable gui on shutdown
fix #255, fix #251:

- remove reconnectdialog (never worked for me)
- automaticly try to reconnect 10 times,
  if still fails, show login dialog
- show login dialog again when agreement is refused
- cleanup (!)