Make gossipchat example close the gossiper on shutdown.