Fix ioloop usage in ftp handler that was causing test failures on pypy