()
| 176 | } |
| 177 | |
| 178 | private closeQuietly(): void { |
| 179 | const cg = this.cg; |
| 180 | this.cg = null; |
| 181 | this.identity = null; |
| 182 | if (!cg) return; |
| 183 | try { |
| 184 | cg.close(); |
| 185 | } catch { |
| 186 | // A close that fails has nothing left to release — the process is either |
| 187 | // exiting or the file is already gone. Never let it fail a request. |
| 188 | } |
| 189 | } |
| 190 | } |