You cannot close the work pace while a build is in progress. select the stop build command before closing the workspace