Semi-complete Foliations associated to Hamiltonian Vector Fields