Update for "write after end" uncaught error.

I've had some issues around logging with or without cluster when logging in excess of 1000+ messages a second.