Fixed exception handling during plugin initialization