Nearly scale-invariant curvature modes from entropy perturbations during the graceful exit phase | Synapse