Abort connection attempt after 4 failed writes