Hard apex transition in quasi-periodic oscillators : closing of the accretion gap