Explicit disconnect from robot to avoid race between connections when uploading program