properly close stream env when tick trade resets