Wrap any exception into AuthenticationException