Make sure the progress bar is hidden when we exit the process

Otherwise it leaves artifacts when we call process.exit