SERVER-13057 push shell write errors more in line with other drivers
(cherry picked from commit 6ee3a36bdb672e0e7b893a77334e932d8d1eab8c)