In case of killing the container when the remote execution is happening we may need to ensure the remote process is finished