Disabling the standard operation of the mine shouldn't prevent resource generation (if it's captured). And indeed, resources are calculated before the trigger for a new day activates.
However, based on my personal experience and the experience of everyone in this thread, sometimes there isn't a correct solution, or rather, there is one, but it's not feasible.
In any case, thank you; I won't waste time trying to bypass the Nival events.
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!
Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.