Description
If some exception occurs in a StateMachine implemented method, the exception is propagated back to Ratis and then through Ratis back again to StateMachine. In this back and forth, the exception could be lost.
While working on OM Bootstrap, I encountered a NullPointer exception in OMStateMachine which cause Ratis (and eventually StateMachine) to shutdown with a "client cancelled" exception. It would have helped in debugging if the OMStateMachine had logged the initial exception.