Close document only if buffer got really reverted.
Remove invalid key-binding.