Fixed whitespace.
Properly handle hook execution errors.