clean interface before shutting it down