Fully remove progressbar element after finishing

This fixes an issue with progress bars in notebooks leaving behind whitespace.

I believe @sboeser originally added this, I'd appreciate it if he took a look!