Catch duplicate hook error.