Basic logout handling