return errors if present on subscribe functions
fix type in error return
Merge pull request #4 from briandowns/master

return errors if present on subscribe functions