Program exits when display is closed. More debug printing added to opcodeProcessing cpp file.