fix rare crashes on connection close