That can't happen, especially not if your Stamina is set to logout at lower. You've either got the 'StamValue' setting at 36 or you have SaveLogout enabled and it's logging out before the set time for SS. Those are the only reasons my scripts would ever logout, unless it fails to refill three times.