Add terminate/1 for adapters