Improved Query Resilience Against Damaged .so Files

Now a query that used compilation does not fail with an error if the .so file gets damaged.