If Language Environment cannot successfully terminate the enclave, it abends with completion code 4094. For example, this can occur when the program has overwritten Language Environment storage, causing Language Environment control blocks to become invalid. The reason code associated with the ABEND 4094 indicates the cause of the failure. The reason codes are described in z/OS Language Environment Debugging Guide.