Handling timeout errors when calculating stats of a server