program now automatically terminates