Added function to terminate progress bar operations

Hey @visionmedia, @hallas, 

I refactored an operation to close the progress bar. I'm experimenting with a few things and noticed there was no real easy way to do this as-is.

Let me know what you think.