Check .csv format, kill infinite loop on cancel