If you download the shooter game sample, check out their game instance cpp class.
you can see that they have a delegate bound to controller connection changes. (HandleControllerConnectionChange)
if you implement this type of delegate, you can write a function which cancels or intercepts input on connection change such as a disconnect.