Functional logout.