Patrick Harvie said he intended to stay on as an MSP