Catch socket.timeout when retrieving emded data