Flush the StringWriter after writing out the exception
Write the REPL exception to a string, then output the string

This is based on communication with Colin Flemming, who feels this will improve
 performance of Cursive and of any nREPL client, by sending fewer, larger messages.