i really think that destroying the interface should not depend on pid being found  what if interface was created but pid file was not written  in that case it will hang there not cleaned up  will not it  i know that is not your code  so you can ignore the comment 