add terminate/1 for adapters
Merge pull request #122 from cuongth/master

Add terminate/1 for adapters