Thats because the server didn't send back datas, than your game "crash" or i don't how how could i say that.
Try to connect hosted servers, they have quite good pings.
Or you can try to connect to that server again, sometimes it can solve this problem.