There is another risk: you run for 2 years and prevent a major problem that would bite the company in year 3 or 4. However because the problem never happened nobody knows how much you saved everyone and so you don't replace all that capital you used up.
Every company I've worked for has regular meetings where they honor the people who stayed late to get the release out the door (I work in embedded systems where upgrades often mean flying someone with a USB stick to a remote location without cell service - thus bug free releases are important since upgrades are expensive). I can't help thinking every time that if the rewarded person had just done their job 6 months ago they wouldn't have had the bug in the first place.
Everyone says the thing they're working on is critically important. Who's right?
More work gets done for less if you wait until the 11th hour and fix the real problems last minute rather than fix everything ahead of time, much of which will turn out to not have needed fixing.
Yeah there's risks involved but at the limit it makes some sense.
I forget the exact details, but we had a bug that prevented logging in to the app for a large subset of users.
The engineer that caused the bug ended up staying late and fixing it. He was treated like an absolute hero by management, even though it was his fault in the first place. (Don't worry, we all fully understood it wasn't just his fault. The whole system failed and he wouldn't have been harshly judged for the problem.)
From then on we joked about adding bugs on purpose so that we could all get similar treatment.
That's sounds very Shakespearean.
I guess it takes a visionary management to recognize the value of disasters that were prevented.
Who is worth more? The person that quietly removes scrub brush and other fuel on the ground in the years before the forest fire starts, or the person that comes in once the fire starts and using lots of equipment and effort puts the fire out. Often the latter person gets the accolades, the former is a thankless task.
If a company lacks visionary leaders like that, then one must wonder if the company has much of a future anyway.