fix/clientFailedAuthBehaviour/maint3.x

fixes #3769.
Unwrap exceptions correctly. Even tough top level exception did not change, I tried to make sure that customer sees Authentication error in the logs(was not visible before this pr, because exceptions did not handled correctly )