Cleanup on stream close. Add destroy method to cleanup stream.