fixed an issue where the builder would exit the process inappropriately