when connect fail, close then open again