handling error cases within SimpleCache