When a task receives a signal causing it to exit, the message system exit handler is invoked (assuming it has been set up). The result is that messages are sent to any other tasks which have been in communication with the exiting task, informing them of its removal, and the task name is de-registered from the message system.