poll.stopped check added