Since my suggestion(s) never got an answer I would like to request the following.
Pass string parameters to a task and have the Exit task action have optional string exit code.
Thank you.
This would of course make writing functions and subtasks easier.