add interrupt handling to lookup-names script [#39581595]