Fix disconnects in net client (#36)