ensure a response callback sends only one response even if called multiple times