The fitting procedure should be stopped by changing the program calcsta, so that it writes sta=0 to the standard output (stdout in Linux). Then the fitting procedure is stopped. The last value of parameters fitted can be found in the input parameter files.