Allow logout without redirect. Add return value to logout method for that case.