Clean up hook/main.c