Ignore late polling results.
Added a test to check that we ignore late poll results.
Merge pull request #880 from hjoliver/872.ignore-late-poll-results

Ignore late polling results.
Fix polling on restart for running tasks.
Merge pull request #882 from arjclark/fix.poll_running_on_restart

Fix polling on restart for running tasks.