tail: introduce closed flag

setting watch to nil has caused nil pointer error