Check for NULL ske when aborting in error case.