buildDoc.sh : Added trap for the progress bar