Using a slightly better kill-hook function.
fixed incorrect documentation.