Quasi-stationary distribution for Hamiltonian dynamics with singular potentials