Plugin error handling.
Refactor plugins (Remove duplicated code).
Merge pull request #75 from DeOb/master

Refactor plugins (Remove duplicated code).