How do I forcefully execute one of the mandatory step even in case of error in the previous step?

Hi Team,

Even there is an error in any of the checks in the previous call, I would like to execute the logout step

exec(Login.steps)
.exec(http(“ProfileData”)
.get("/api/employee/123456")
.headers(headers_0)
.check(status.is(200))
.check(regex(""“empId”"").exists)
.check(jsonPath("$.firstName").exists)
.check(jsonPath("$.lastName").exists)
).exec(Logout.steps)

How to achieve this? Thanks for answering this!!

Regards,
Vithya