Timeout detection using signals.