networking: cleanup