Avoid stacktrace in logs if the session closes due to an IO error in the middle of sending a partial message.