         if task.remainingTransactions == 0
           logger.info('Rerun Task #' + taskID + ' - Completed successfully')
 
-      callback(task)
+      callback null, task
 
 ###############################################################
 # Function for updating the task object with response details #

    response.message = "Internal Server Error"
    response.timestamp = new Date

    callback(response)

  # write data to request body
  if transaction.request.method == "POST" || transaction.request.method == "PUT"

  if transaction.request.querystring
    options.path += "?"+transaction.request.querystring

  return callback null, options

#####################################
# Construct HTTP options to be sent #
