Terminate the Thin thread in an ensure block