Check, if getting shared memory is unsuccessful.