Cleanup hook.c