Fixed closing open SFTPFile instances from a single thread.