Sftp failure

Hello,
Sometimes when i execute my shell that makes sftp it gives me this error:

Couldn't close file: Failure.

What does it mean?, how can i make sure it will do ok?.

Bye

I having the same issue as this. Does anyone know anyhting about this error?

post your script (atleast sftp part )