add error handling to process_tracks_to_remove