Throw IOException instead of the internal invalid smiles exception - we still get a nice message but allows to avoid exposing an extra class.