Complete logout framework