catch possible exceptions when writing the finder cache