switched from finish to close event on stream