use tied filehandle for perl channel
call driver c++ destructors