hook cleanup hooks messages print errors