Raise an error for unsupported hook event

Fixes #1525 against branch 2.0

* Raises a ValueError for an unsupported hook event