handle interface deletion properly