Defer end part of tee command