Destructs an existing stream wrapper
Called when closing the stream wrapper, right before streamWrapper::stream_flush.
This function has no parameters.