Fix mshell send failures, simplify client receive API