remove finally detection