Clean up logout in Main controller