Clean up PIDs and sections