JBTM-1650 update to fix SIGPIPE when tpdiscon()