Re: Automatic way of terminating a program