Clean up in net code.