don't crash on client.end(): #5