If control-C is pressed for the main task, this should be caught and forwarded to the other tasks, closing it all down cleanly.
Click here for more information on UCL-CS.