cleanup attached