I have another solution, create a bat file and put on it lines below to kill the process :
echo off
taskkill /F /IM http://ftp.exe /T
After that put a timeout to your previous task (ftp task / execute sql task....etc) per exemple (30 or 60 sec) and add a Precedence Constraint that on Failure branches your flow to the taskkill bat.
Hope it helps !