Gracefully handle broken pipes
Fix some typos