Failure handling improvements.
Merge remote-tracking branch 'remotes/origin/master' into repl
Added leader notification.