Create Document with LoadOptions Never Returns

I am processing PCL files, but need to handle potential bad input files. Creating a document normally raises the error "Incorect file format."

But, doing the same with the LoadOptions never returns. It just hangs. How can I handle this?

This raises the error Incorect file format, as is appropriate.
Aspose.Pdf.Document doc = new Aspose.Pdf.Document("c:\smallTextFile.txt");

This never returns.
Aspose.Pdf.LoadOptions loadopt = new Aspose.Pdf.PclLoadOptions();
Aspose.Pdf.Document doc = new Aspose.Pdf.Document("c:\smallTextFile.txt", loadopt);

@varsoil

Thank you for contacting support.

We have not been able to notice the system to be hanging or unresponsive with Aspose.PDF for .NET 19.6. However, it does not throw incorrect file error for which a ticket with ID PDFNET-46585 has been logged in our issue management system for further investigation and resolution.

We are sorry for the inconvenience.