glib networking clean up