Added crash detection in programmer mode