Moving debug output before handling of task completion to ensure output is displayed in case of errors and to serve as context prior to the success statement.
Merge pull request #4 from arithmetric/feature/fix_error_debug_output

Moving debug output before handling of task completion to ensure output ...