Auto mute master out based on threshold?

In the interest of protecting our ears, is there some functionality/plugin in Cubase (or elsewhere) to automatically mute the master fader if the output exceeds a certain threshold? This has saved my a$$ quite a few times in Reaper, especially when trying out something random.