fixed bug where evenstream was not terminating