Fix the set context return code, add more debug to help plugin development.
Merge pull request #58 from harlequin-tech/master

Fix the set context return code, add more debug to help plugin development