[bugfix] close endpoint when bc exit