tail: introduce closed flag

setting watcher to nil has caused nil pointer error