add exception handling about unsafe code in plugins.