Catch condition=G_IO_NVAL from glib's event handler, which should prevent some crashes on unclean shutdowns of connections.