8 kill -TERM $client_pid > /dev/null 2>&1
9 kill -TERM $hook_pid > /dev/null 2>&1
12 # remove receiver data, if any
15 > $UTP_RECEIVER_OUT_LOG
16 > $UTP_RECEIVER_LOG_FILE
17 > $UTP_RECEIVER_MONITOR_LOG
20 $UTP_RECEIVER $UTP_RECEIVER_LOG_FILE $UTP_RECEIVER_PORT $LEECHER_DATA >> $UTP_RECEIVER_OUT_LOG 2>&1 &
23 # start monitoring on pid
24 ./hook_monitor_pid $client_pid >> $UTP_RECEIVER_MONITOR_LOG 2>&1 &
27 trap cleanup 0 1 2 3 15