kill tail with PID of pty

Tail will get killed when PTY gets killed