Listen to document resets.