Handle jsftp socket errors.

Hi,

I've added handling of socket errors thrown by jsftp. This fails the task in case of a mistyped host, timeout or a similar error.

- Dali