To cancel the NetBeans build script, click the X next to the progress meter.