Agnew quits as Green leader