Added ftp timeout check

I have added a timeout check in the ftp adapter. It maybe no the best solution, but it works fine. What you think about this solution?

This PR fix issue #156