End main.c with an infinite loop