handle Ctrl-C signal and stop after curr upload