finalize lists and clean up media