stream: log a warning on error
When we get an invalid buffer or we can't mmap() it, log a warning and exit instead of carying on with invalid pointers and segfault.
When we get an invalid buffer or we can't mmap() it, log a warning and exit instead of carying on with invalid pointers and segfault.