internals.output expects an error object, updated double call check on done to provide such
Merge pull request #88 from jasonpincin/master

updated double call check on done to provide error to internals.output