EndNodeSwitch handleMessage-behaviour.