Fixing issue where app creation failure did not cleanup gears from node
Merge pull request #2085 from abhgupta/app-cleanup-bug

Fixing issue where app creation failure did not cleanup gears from node