Perform a programmatic sign out and navigate to the URL specified by the location parameter.
Parameters: location - URL to redirect to after signout; can be null to indicate default behavior. throws: IllegalStateException - if programmatic signout cannot be done throws: IllegalArgumentException - if the location is not valid