Detect timeout exceptions.