fixed bug which caused crash when retiring old connections