handle expiration on key deletion