Show error message when connection fails

We don't detect when a connection fails, and don't show anything about
it in the user interface. Show a dialog with an error message if the
connection fails.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>