Adds RebindExceptionHandler
HA master promotion: avoid NPE if no valid masters
PR #1400 RebindExceptionHandler review comments
Merge pull request #1400 from aledsage/fix/rebind-RebindExceptionHandler

Adds RebindExceptionHandler