Update the logout function according to grin-global-server#361 (closed).
This will address #473 (closed)