Fixed decoding error that occurs when NATS server shuts down.