avoid race double-close on replies