Counter for X should be inside the callback function
The callback for the grunt task should be called even if the async loop fails
Removed unnecessary comment