removing the registration of the message_handler. this is done in the native code.