Maked logout (need hard testing)