Added catch for stream overflow exception during packing of stream.