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