fixed case loop (quit function) KILLPROG function error