connect failed exit the process