make sure close securechannel is queued