1070585: GUI no longer locks on connection test. Adds cancel button.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1070585

try/except/else/finally doesn't work on 2.4 either. 

In theory, this should be 2.5+ though, so should be okay