In cases, where codec initialisation may fail, we still try unregistering the message handler. Do not try unregistering the handler if it was not registered in the first place.
In cases, where codec initialisation may fail, we still try unregistering the message handler. Do not try unregistering the handler if it was not registered in the first place.