fixup re-init of secure messaging

fixes an issue where reset of the applet broken when
re-initing secure messaging.