PERFECT exit script