correctly "unlink" a securechannel that is deleted
simplify. _new() returns a pointer to the new object
make the client not leak any memory