remove terminal panel before exit