Check connection

Signed-off-by: bunopus <bunopus@gmail.com>