remove pointers to securechannel when the connection closes, see #128