Just FYI, you're able to drop Rune essence and the game won't stop you from mining... So, if you setup some kind of auto-click mechanism, you could just sit there and have the essence dropped randomly and you won't stop mining.
The simple fix is to make you stop mining when you drop Essence.