added assert to read in poller_stop