capturing exceptions when reading the keys.db