Adding sleep before logout