End program upon destory (Closes: 428893)