Wait for the last unsubscribe before closing ioloop..