val onDisconnect: () -> Unit
implement this callback to perform logic when the RPC disconnects on connection disconnect