Properly handle incomplete json when input is file

Fix #562
Handle invalid inputs in argument files (fix #562)
Never close stdin; allow multiple `-` arguments