Logging out the env