Check whether connection still has endpoints before trying to reattach it or throw it away