Write errors will not change exit code. So you will alway have zero exit code.