Stimhack gives me 9 credits that I have to spend during a run.
Cards like Clone Chip allow me to install programs during a run. I can obviously use my Stimhack credits to pay for these programs.
My question is, let's say I'd like to save my money for trashing cards in a server: Once I've accessed and trashed cards, is it too late to then spend what I have left using Clone Chip or similar?
My understanding is that Clone Chip (etc.) requires a paid ability window to install a program. There doesn't appear to be such a window between accessing cards and ending the run.
Am I forced to spend "spare" credits prior to accessing and guess how much I need to keep to pay for trashing, losing any that still remains?
An example to explain:
I Stimhack into a remote server. I break the only piece of ICE, leaving me with 6 Stimhack credits left. I suspect the only card in the server is a SanSan City Grid which I'd like to trash (and which would cost 5 to do so). I access the card and see that it's actually a Red Herrings and I trash it for one credit.
Option A: I still have 5 credits left so I spend them to install Crypsis from my heap using Clone Chip (rather than lose the 5 credits). Then the run ends.
Option B: My 5 credits are lost.