Ensure process exists before terminating