catch socket.timeout error