To kill the current build process and close all build windows, choose Build > Exit Building in the Building window.
If you want to close the building windows without killing the current build process, choose Build > Close.