Handle completing a program