add check connection in work cycle and try to reconnect if connection fail
add check connection in work cycle and try to reconnect if connection fail