Allow for newlines in server responses, and exit cleanly