The _cleanup method applies to the Stream object. This should fix #119