Game crashes when trying to reload a "broken" fragment program

The engine crashes for me when I hit Cmd+R in a fragment program if there are any compile errors with the error message: dmGraphics::EnableProgram(dmGraphics::Context*, unsigned long) + 145