added error handling for when client auto-resends a message but user has deleted keys from keys.dat file