add better error logging for plugin failures.
Merge pull request #333 from continuuity/feature/better-error-messages

add better error logging for plugin failures.