Added error handling to reading of user cache file.