Cleanup, hooks for adding logic to polling.