client handle logout with some todo