Partial support for logging out.