support proper DTLS shutdown and restart DTLS on FP change

fixes #40