[CoAP] prepared shutdown functionality