The mol2mol module provides pipeline elements having a molecule as input and Error handling In MolPipeline, we use a dedicated object called InvalidInstance to mask failed instances. When an instance, like a molecule, fails a pipeline step, we substitute it with an InvalidInstance, which can be detected, skipped, and replaced automatically.