Add pause and exit or auto close to build cmd box

Could the batch file that runs the build process get the following added to the end?

pause
exit

or even better, if the build is successful the the box disappears but if unsuccessful it remains to show the errors.

I run builds repeatedly and end up with lots of command boxes filling my screen. Yes I can click them closed or type exit or right click on the taskbar to close all open cmd windows. But mainly I only want to see ones that are unsuccessful builds.

Anyone else like this idea? Like it enough to vote?