LPS-51193 Allow the client invoker to control the illegal disconnect beh...

...avior(ignore or throw an exception)