Throwing runtime exceptions when minting fails