SFTPFile: propper EOF handling and fixed memleak

previously only the request handles were removed leaving the request
and their allocated memory behind.