Guarantee that only one connectionTerminated callback will ever happen