ISPN-4678 Trim down ExpandableMarshalledValueByteStream to the actual data length before storing in cache
ISPN-3743

Ignore some of the errors that can be thrown by a node while stopping:
IllegalStateException and NullPointerException.