Added the missing flush() in contrib.filetransfer