Prevent grandchild from crashing on exception

execute_blocking's grandchild can have an exception thrown after cmd_err_write.close, in which case the rescue block will crash.
Merge pull request #10 from guss77/master

Prevent grandchild from crashing on exception