More defensive initPrefs and refreshConnection
More defensive initPrefs and refreshConnection

Be more defensive about failed init attempts that were interrupted
half-way through (by an exception). Normally this is the UI's
responsibility but better safe than sorry.

paulp/unison