Exit from main loop if there's an invalid pipe command
Remove old TODO comment
Remove some old TODO comments

Regarding the "length checks" TODO, the length check is now done in
objInvoke() which in turn calls objInvokeSafe().