I didn't go through the whole code, most likely the server didn't give the netsplit quit message in a *.*.* *.*.* format.