Add trap_exit flag to client processes