reconnect when encountered 'broken pipe' error during Write()