Allow logout without redirect. Add return value to logout() in that case.