detach

fun detach()

Function called to detach middleware context if it exists