I think the issue is that the client can't handle the response from the master server.
I'm not in the mood to reverse engineer the communication in order to find the issue. The answer is fine most of the time, so the core issue is probably in the way the master server replies. There's probably an issue in the client as well, it should't crash just because it recieves "unexpected" data.