Cleanup done when leaving the page in the middle of stream creation