I do not feel it is ever wise to punish when angry or frustrated as I think a Dom benefits from taking time out to let emotions cool before fashioning something appropriate to the offense. That said, I think it is as someone else mentioned an excellent idea to send a submissive to a corner with instructions to reflect while the Dom engages in the cool down period and formulates an appropriate punishment.