new implementation of halt method
Merge pull request #17 from patriciomacadden/new-halt

new implementation of halt method