bug 854609 - clear record before showing connection fail alert, r=arthur

to prevent it overwrite correct connection status because alert popup is
a blocking UI. Status may be changed within the time period.