mobibench:shell: add debug print for write error