Calling g_io_channel_set_close_on_unref() after crating channel