Does it seem like it's dying because it's under load even though it's in neutral? Could be a trans problem. Or, might just be time to change the fuel filter and it's not getting a good enough flow of fuel. That would allow it to run okay while it's free but as soon as you let the clutch out...