Logout functional.