Don't overwrite existing error code if xd3_close_stream fails