add handle net error when connect to server