Add hooks for handling error
Merge pull request #20 from payrollhero/error_handling_hooks

Error handling hooks