About usb connection to arduino

I am using arduino uno with usb serial communication to communicate cayenne…
Operating system:windows

I successfully connected arduino to cayenne…
Now,while uploading any sketch, i got problem of access denied…

In example code of usb serial communication
In ATTENTION heading, they said that u will encounter such a problem of access denied of port.and says to terminate connection script while uploading the sketch…
I terminate the script by pressing ctrl+ c and press y…

Then i upload my sketch… Skech upload successfully without any errors…but device gets offline…what should i do to gets my device online??how to enable connection script??