Terminate sender program after one file send