add support of closing DTLS session