Bug 968823 - Make Shmem gracefully handle errors instead of just aborting - r=bent