TFS - Run SSH task executes file and gives warning in end

I am running a shell file using "Run SSH task" in TFS. The script executes completely. But on moving to the next task, it takes time. It gives this warning in the end which consumes almost 10 min more.

[warning]Failed to delete the script file copied to the remote machine. Error = Error: Not connected.