change error handling for MultyWaySwitch.
fixed error handling for parallel things