I'm trying to use a command to close a status window, but I don't know how to do it.
Basically I'm trying to have it close on ERROR..