catch tcp timeout errors