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 #8 from arithmetric/feature/fix_debug_output

Fixing debug output in case of errors