CONFD_CLI Hung Issue

Confd Cli is getting hung and the sessions is not getting terminated
Description:
We recently shifted from VNF to CNF
In VNF:
process tree = sshd-> bash->confd
Scenario when this issue occurs:
cli: set something

At this time, when you close the terminal abruptly, sshd sends a signal to confd
07:47:53 read(3, “\nAborted: user aborted\n[error][2”…, 1024) = 80
07:47:53 write(1, “\nAborted: user aborted\n[error][2”…, 80) = 80
07:47:53 poll([{fd=0, events=POLLIN}, {fd=3, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
07:48:53 read(3, “\0\3\n*** IDLE TIMEOUT \n", 1024) = 24
07:48:53 write(1, "\n
IDLE TIMEOUT ***\n”, 22) = 22

In CNF:
when you close the terminal, since there is no sshd, the bash is not getting the signal
And the confd_cli session is staying alive even after the parent is getting killed