Wrote nsLogout and added LOGOUT command.