         (next) =>
           # delete user's resources (credentials, stack templates, stacks, machines)
           ComputeProvider = require './computeproviders/computeprovider'
-          ComputeProvider.destroyAccountResources this, -> next()
+          ComputeProvider.destroyAccountResources this, next
 
         (next) ->
           # delete invitations

      username = @getAt 'profile.nickname'
      accountId = @getId()

      # delete the team and delete the account
      queue = [

        (next) ->
          group.destroy client, (err) ->

        @fetchAllParticipatedGroups options, (err, groups) =>
          return next err  if err
          JUser = require './user'
          username = @getAt 'profile.nickname'
          for group in groups
            group.jwtToken = JUser.createJWT { username, groupName : group.slug }
          next null, groups
