Cleaning up trailing whitespace.
Fixing bug where stream has finished but compressed has not yet completed.