In general, signal handling is the responsibility of the DA. When a signal to terminate is caught, the signal handler must start TU_CLOSE through the exectu() interface, so that a proper cleanup of the device is performed and a release of resources occurs. TU_CLOSE should be started only if TU_OPEN has already been called successfully.