Listens to quit signals and count retries.