define terminate
remove warnings
Merge pull request #1 from myuon/master

Flexible plugin