Stop log in before quit is pressed.