Fix Flush

So, we tried it out - main() can't have a return value, so we need to call os.Exit to set a non-zero exit code.