add exception handling for Publish
use hub's task factory to create task with error
Merge pull request #3 from InTRUEdeR/master

Add exception handling for Publish