Fixed timeout issue by closing requests