Fix UI lock while checking internet connection

Signed-off-by: Andrey Zhdanov <andrjufka@gmail.com>