Cleaned up Selector._run().