Bad finish is come from the little segment from the output of the program.......try program different.