accessible running flag for safer termination