Fix ui modification outside of the ui thread on connection failure

Signed-off-by: Raphael Catolino <raphael.catolino@gmail.com>