Fix crash on close with multiple upr connections