Remove profiler lines that may be referenced during PHP shutdown and cause errors.