                     @taskFilesSandboxUnavailable = true
                     deferred.resolve()
                 )
+            @sandboxTries += 1
 
         deferred
 

    killTaskTemplate: require './templates/vex/killTask'

    initialize: ->
        @taskFiles = {}
        @taskHistory = new TaskHistory {}, taskId: @options.taskId


            @taskFiles = new TaskFiles {}, { taskId: @options.taskId, offerHostname: @taskHistory.attributes.task.offer.hostname, directory: @taskHistory.attributes.directory }
            @taskFiles.testSandbox()
                .done(=>
                    @sandboxTries = 0
                    @taskFiles.fetch().done =>
                        @taskFilesFetchDone = true
                        @taskFilesSandboxUnavailable = false
