Merge pull request #6 from wtangiit/master

automatic failure recovery for workunits