vgui_cleanup command?

Hey,

Recently I have been working with derma a fair bit and sometimes run into the problem where I do something wrong and there is a lua error that makes the derma stick the screen.

I have seen on other servers there is a vgui_cleanup command that removes all the derma that is open on screen, how would I go about making this command?