Added passive mode to program termination