add process errors support
Merge pull request #154 from djdeath/process-errors

add process errors support