Add onScriptTimeout hook to help debug client timeouts