Added a check when the kni interface is released