TMP: Few error catching hooks.