Added server logout function.