a mental process which enables a person to avoid acknowledging unpleasant or threatening aspects of reality:some use drugs as an escape mechanism while incarcerated
escape mechanism in other Oxford dictionaries
Definition of escape mechanism in the US English dictionary