Raise an error for unsupported hook event

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