added more error handling around plugin import to handle any error gracefully