added check on pt-osc termination for clean exit