c_glib: handling exception for socket read