Added I/O error checking to configure

1. Reading/writing the configuration cache should be smoother.