API: More gracefully fail when opening shared memory segment fails.