Partially based on this question and answer
If a person experiences a miracle related to a mitzvah, for example a Chanukah candle is lit with only enough oil to last one hour and it miraculously persists for 24 hours or more and the person would need to extinguish the candle in order to relight it and make the blessing. Or Shabbat candles are light Friday night and miraculously stay light until the next Friday night and a person would likewise need to extinguish it in order to relight and make the blessing. Or any other possible example wherein a person would need to undo a miracle in order to perform a mitzvah; do any halachic authorities discuss what the proper action would be in such a circumstance?
Meaning, is it preferable to (attempt to) undo/terminate a miracle so that a person can perform a mitzvah with/through the miraculous item, or is it better to not take an action that might cause a miracle to stop so that you can perform a mitzvah?